import { getDetail } from "@/api/specExhib.js";

const SPEC_EXHIB_DETAIL = {
  state: {
    specExhibDetail: {}
  },
  mutations: {
    SET_DETAIL: (state, detail) => {
      state.specExhibDetail = detail;
    }
  },
  actions: {
    getSpecExhibDetail({ commit }, id) {
      getDetail(id).then(res => {
        commit("SET_DETAIL", res.data);
      });
    }
  }
};
export default SPEC_EXHIB_DETAIL;
